package com.sheng.dao;

import com.sheng.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

public interface UserDao {
    @Select("select * from user")
    List<User> findAll();
    @Insert("insert into user values(#{username},null,#{password})")
    void save(User user);
}
